
package kernel;

import java.io.Serializable;

/**
 * This classe is a format used by IHM to communicate informations about a timer to the Simulator
 * @author Equipe SimPack 2004
 *
 * 
 */
public class DataTimer extends DataType {
	
	/** Current time of simulation */
	private double _currentTime; 	
	
	/** Simulation speed */
	private int _speed;
	
	/** Step */
	private int _step;	

	/**
	 * Constructor
	 * 
	 */
	public DataTimer() {
		_currentTime = 0;
		_speed=1;
		_step=0;			
	}

	/**
	 * Constructor
	 * 
	 * @param currentTime current time of simulation
	 * @param speed simulation speed
	 * @param step ??? cf the others group memeber
	 */
	public DataTimer( double  currentTime, int speed, int step) {
		_currentTime = currentTime;
		_speed=speed;
		_step=step;			
		
	}

	/**
	 * Set the different attributes
	 * 
	 * @param currentTime current time of simulation
	 * @param speed simulation speed
	 * @param step ??? cf the others group memeber
	 */
	public void setAttributes(double  currentTime, int speed, int step){
		_currentTime = currentTime;
		_speed=speed;
		_step=step;
	}

	/**
	 * Get current time
	 * 
	 * @return current time
	 */
	public double getCurrentTime(){
		return _currentTime;
	}
	
	/**
	 * Get speed
	 * 
	 * @return speed
	 */
	public int getSpeed(){
		return _speed;
	}
	
	/**
	 * Get step
	 * 
	 * @return step
	 */
	public int getStep(){
		return _step;
	}

}
